package cn.echoedu.control;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import cn.echoedu.command.base.SuccessParam;
import cn.echoedu.entity.AClass;
import cn.echoedu.entity.receivecommand.ClassListReceive;
import cn.echoedu.entity.receivecommand.ClassNotifyFirstReceive;
import cn.echoedu.model.AClassModel;
import cn.echoedu.util.WebContext;

public class AClassControl extends BaseControl{
    
	public void queryClassListByProfessional(HttpServletRequest request,
			HttpServletResponse response, ClassListReceive classlistreceive) {
		// TODO Auto-generated method stub
		List<AClass> aclasslist = getAClassModel().queryClassListByProfessionalCode(
				classlistreceive.getProfessionalcode());
	    SuccessParam successparam = getSuccessParam(request,response,aclasslist,classlistreceive.getToken(),
			   classlistreceive.getCode());
	    sendSuccess(successparam);
	}
	private void sendSuccess(SuccessParam successparam){
		 getResponseService().doQueryClassListSuccess(successparam);
	
	}
	
}
